package com.second.app.designpattern.bridge.poor;

import com.mysql.cj.jdbc.NonRegisteringDriver;

import java.sql.SQLException;

/**
 * @Author GYZ
 * @Date 2023/8/2
 * <pre>
 *
 * </pre>
 */
public class Driver extends NonRegisteringDriver implements java.sql.Driver {

   static {
       try {
           java.sql.DriverManager.registerDriver(new Driver());
       } catch (SQLException e) {
           throw new RuntimeException("CAN NOT REGISTER DRIVER!");
       }
   }
    public Driver() throws SQLException{

    }
}
